package com.symone.webcms.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author archerchu
 * @since 2018-11-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_log")
@ApiModel(value="系统日志表")
public class UserLog extends Model<UserLog> {

    private static final long serialVersionUID = 1L;

     @TableId(value = "id", type = IdType.AUTO)
     @ApiModelProperty(value = "ID",example = "12")
      private Long id;
    @TableField(value = "user_id")
      private Long userId;
    @TableField(value = "user_name")
      private String userName;
    @TableField(value = "url")
      private String url;
    @TableField(value = "ip_address")
      private String ipAddress;
    private String params;
    private String method;
      private Integer deleted;
    @TableField(value = "create_time")
    private Date createTime;



    @Override
    protected Serializable pkVal() {
            return this.id;
    }

@Override
public String toString() {
        return "UserLog{" +
                ", id=" + id +
                ", userId=" + userId +
                ", userName=" + userName +
                ", method=" + method +
                ", url=" + url +
                ", ipAddress=" + ipAddress +
                ", params=" + params +
                ", deleted=" + deleted +
                ", createTime=" + createTime +
        "}";
        }
}